package com.sxp.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Created by lakmini on 10/15/14.
 */
public class MonthlyCount {
    private int rice_id;
    private int meal_id;
    private String mealName;
    private String riceName;
    private int Month;
    private int day;
    private int Count;
    private Set<String> allMealTypeSet;
    private Set<String> allRiceTypeSet;




    public MonthlyCount() {
    }

    public int getRice_id() { return rice_id; }

    public void setRice_id(int rice_id) {
        this.rice_id = rice_id;
    }

    public int getMeal_id() {
        return meal_id;
    }

    public void setMeal_id(int meal_id) {
        this.meal_id = meal_id;
    }

    public int getMonth() {
        return Month;
    }

    public void setMonth(int month) {
        Month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getCount() {
        return Count;
    }

    public void setCount(int count) {
        Count = count;
    }

    public String getMealName() {
        return mealName;
    }


    public String getRiceName() {
        return riceName;
    }

    public void setRiceName(String riceName) {

        if(allRiceTypeSet == null){
            allRiceTypeSet = new HashSet<String>();
        }
        this.riceName = riceName;
        allRiceTypeSet.add(riceName);
    }

    public Set<String> getAllMealTypeSet() {
        return allMealTypeSet;
    }

    public void setAllMealTypeSet(Set<String> allMealTypeSet) {
        this.allMealTypeSet = allMealTypeSet;
    }

    public Set<String> getAllRiceTypeSet() {
        return allRiceTypeSet;
    }

    public void setAllRiceTypeSet(Set<String> allRiceTypeSet) {
        this.allRiceTypeSet = allRiceTypeSet;
    }

    public void setMealName(String mealName) {

        if(allMealTypeSet == null){
            allMealTypeSet = new HashSet<String>();
        }
        this.mealName = mealName;
        allMealTypeSet.add(mealName);
    }
}
